<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<center>
		<jsp:include page="../main_header.jsp" flush="true" />
		<div align="center" class="body">
			<h1>♥리뷰 게시판♥</h1>
		<table width="600" border="0" cellspacing="0" cellpadding="0">
			<tr>
				<td align="right" height="50" valign="bottom">
					<form action="SSearch" method="post">
						<select name="search">
							<option value="0">제목</option>
							<option value="1">글쓴이</option>
						</select> 
						<input type="text" name="searchtxt" >
						<input type="submit" value="검색">
					</form>
				</td>
			</tr>
			<tr>
				<td height="5" colspan="2"></td>
			</tr>
		</table>
			<table width="600" border="1" cellspacing="0" cellpadding="4" bordercolordark="white" bordercolorlight="black">
				<tr class="header" bgcolor="#CCCCCC" height="20">
					<td align="center" width="80">게시번호</td>
					<td align="center" width="320">제목</td>
					<td align="center" width="100">글쓴이</td>
					<td align="center" width="100">수정/삭제</td>
				</tr>
				<c:forEach items="${BOARD}" var="BOARD">
					<tr class="record">
						<td align="center">${BOARD.posts_no}</td>
						<td align="center">
						<a href="Review_detail?posts_no=${BOARD.posts_no}">${BOARD.posts_title}</a></td>
						<td align="center">${BOARD.posts_Author}</td>
						<td align="center"><a href="deletereview?posts_no=${BOARD.posts_no}">삭제</a></td>
					</tr>
				</c:forEach>
			</table>
			
		</div>
	</center>
</body>
</html>